package com.ixuea.courses.mycloudmusicapisp.util;

import java.util.UUID;

/**
 * ID工具类
 */
public class IDUtil {

    /**
     * 获取uuid
     * @return
     */
    public static String getUUID() {
        String uuid = UUID.randomUUID().toString();

        //去掉横线
        return uuid.replace("-", "");
    }
}
